home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-22 | 2.0 KB | 80 lines | [TEXT/CWIE] |
- // Release Version: $ ODF 2 $
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
-
- //================================================================================
- #ifndef PART_H
- #include "Part.h"
- #endif
-
- #ifndef FRAME_H
- #include "Frame.h"
- #endif
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- #ifndef BINDING_K
- #include "Binding.k"
- #endif
-
- // ----- Framework Includes -----
- #ifndef FWABOUT_H
- #include "FWAbout.h"
- #endif
-
- //==============================================================================
- #ifdef FW_BUILD_MAC
- #pragma segment Sample2
- #endif
-
- FW_DEFINE_AUTO(CSample2Part)
-
- //==============================================================================
- CSample2Part::CSample2Part(ODPart* odPart)
- : FW_CPart(odPart, FW_gInstance, kPartInfoID)
- {
- }
-
- //--------------------------------------------------------------------------------
- CSample2Part::~CSample2Part()
- {
- }
-
- //--------------------------------------------------------------------------------
- void
- CSample2Part::Initialize(Environment* ev, ODStorageUnit* storageUnit,
- FW_Boolean fromStorage) // Override
- {
- FW_CPart::Initialize(ev, storageUnit, fromStorage);
- FW_CSelection* selection = NULL;
- const ODType kMainPresentation = "Apple:Presentation:Sample2";
- this->RegisterPresentation(ev, kMainPresentation, true, selection);
- }
-
- //--------------------------------------------------------------------------------
- FW_CFrame*
- CSample2Part::NewFrame(Environment* ev, ODFrame* odFrame,
- FW_CPresentation* presentation, FW_Boolean fromStorage) // Override
- {
- FW_UNUSED(fromStorage);
- return FW_NEW(CSample2Frame, (ev, odFrame, presentation, this));
- }
-
- //--------------------------------------------------------------------------------
- FW_CContent*
- CSample2Part::NewPartContent(Environment* ev)
- {
- FW_UNUSED(ev);
- return NULL;
- }
-
- //--------------------------------------------------------------------------------
- FW_Handled
- CSample2Part::DoAbout(Environment* ev)
- {
- ::FW_About(ev, this, kAbout);
-
- return FW_kHandled;
- }
-